package com.tz.ebusiness.mapper;

import com.tz.ebusiness.entity.User;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

@MapperScan
public interface UserMapper {
    /**
     * 保存一个用户
     */
    void insertUser(User user);

    /**
     * 根据用户名和密码查询用户
     */
    User selectUser(@Param("username") String username, @Param("password") String password);

    /**
     * 根据用户名查用户
     */
    User findUser(@Param("username") String username);
}
